<template>
  <div>
    <el-dialog :title="title" v-model="dialogVisible" :before-close="closeDialog" v-on:open="loadData">
      <el-row :gutter="10">
        <el-col :span="24">
          {{form.postData}}
        </el-col>
      </el-row>
    </el-dialog>
  </div>
</template>
<script>
  export default {
    data () {
      return {
        title: '查看详情', form: model
      }
    },
    props: {
      dialogFormVisible: {
        type: Boolean,
        default: false
      }
    },
    computed: {
      dialogVisible: function () {
        return this.dialogFormVisible
      }
    },
    methods: {
        closeDialog(){
        this.$emit('closeDialog');
      }, loadData(){
        var vm=this;
        vm.$parent.loadData(function (ret) {
            if(ret!=undefined){
                vm.form=ret;
            }else{
                vm.form=model;
            }
        });
      }
    },created() {
        var vm=this;

  }
  }
</script>
